home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
QBWIZ12.ARJ
/
CRT.ASM
< prev
next >
Wrap
Assembly Source File
|
1991-02-20
|
2KB
|
56 lines
comment #
+----------------------------------------------------------------------+
| |
| QBWIZ Copyright (c) 1990-1991 Thomas G. Hanlin III |
| |
| QuickBASIC Access Library |
| |
| assembled with the excellent OPTASM by SLR |
| |
+----------------------------------------------------------------------+
#
public CRT
.model medium
.code
CRT proc ; get display adapter type
mov al,b$Adapter ;
test al,1 ; MDA?
jnz #MDA ; yep, set it
test al,2 ; CGA?
jnz #CGA ; yep, set it
test al,4 ; EGA?
jnz #EGA ; yep, set it
#VGA: mov ax,"GV" ;
#Done: mov String,ax ; save first char
lea ax,Str ; point to string header
ret ;
#MDA: mov ax,"DM" ;
jmp #Done ;
#CGA: mov ax,"GC" ;
jmp #Done ;
#EGA: mov ax,"GE" ;
jmp #Done ;
CRT endp ; get display adapter type
.data
extb b$Adapter
Str dw 3,offset String
String db "MDA"
end